package com.ppm.common.base.exception;

import lombok.Data;

/**
 * @author KwokChiKit
 * @date 2021/4/29 10:40
 * @Description 自定义基础异常，用于向上跑出可预知异常
 */
@Data
public class BaseException extends RuntimeException {

    protected int code;
    protected String msg;

    public BaseException() {
        this(500, "系统错误");
    }

    public BaseException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}